package com.jinxin.platform.cddatadict.pojo.domains;

import java.time.LocalDateTime;
import java.util.List;

import com.alibaba.fastjson.JSONArray;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.datatype.jsr310.ser.LocalDateTimeSerializer;

/**
 * <b>[amiba_dict_item]数据持久化对象</b>
 * <p>
 * 注意:此文件自动生成-禁止手工修改。
 * </p>
 * 
 * @author @blue
 * @date 2020-05-16
 */
public class DataDictItem {

	/**
	 * id
	 */
	private String id;
	
	/**
	 * 激活字典项：yes[激活]，no[未激活]
	 */
	private String enableItem;
	
	/**
	 * 字典类别
	 */
	private String dictType;
	
	/**
	 * 字典名称
	 */
	private String dictName;
	
	/**
	 * 字典键值
	 */
	private String dictKey;
	
	/**
	 * 字典说明
	 */
	private String dictReadme;
	
	/**
	 * 创建时间
	 */
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
	@JsonSerialize(using = LocalDateTimeSerializer.class)
	private LocalDateTime createTime;
	
	/**
	 * 更新时间
	 */
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
	@JsonSerialize(using = LocalDateTimeSerializer.class)
	private LocalDateTime updateTime;

	/**
	 * 字典层级
	 */
	private Integer dictLevel;

	/**
	 * 字典类别名称
	 */
	private String dictTypeName;
	/**
	 * 字典编码
	 */
	private String dictCode;
	/**
	 * 字典属性
	 */
	private String dictAttribute;
	/**
	 * 字典备注
	 */
	private String dictRemark;

	private List<DataDictItem> itemList;

	private boolean haveChild;

	private JSONArray itemJsonArray;

	public JSONArray getItemJsonArray() {
		return itemJsonArray;
	}

	public void setItemJsonArray(JSONArray itemJsonArray) {
		this.itemJsonArray = itemJsonArray;
	}

	/**
	 * id
	 * 
	 * @return id
	 */
	public String getId() {
		return id;
	}
	
	/**
	 * 激活字典项：yes[激活]，no[未激活]
	 * 
	 * @return enableItem
	 */
	public String getEnableItem() {
		return enableItem;
	}
	
	/**
	 * 字典类别
	 * 
	 * @return dictType
	 */
	public String getDictType() {
		return dictType;
	}
	
	/**
	 * 字典名称
	 * 
	 * @return dictName
	 */
	public String getDictName() {
		return dictName;
	}
	
	/**
	 * 字典键值
	 * 
	 * @return dictKey
	 */
	public String getDictKey() {
		return dictKey;
	}
	
	/**
	 * 字典说明
	 * 
	 * @return dictReadme
	 */
	public String getDictReadme() {
		return dictReadme;
	}
	
	/**
	 * 创建时间
	 * 
	 * @return createTime
	 */
	public LocalDateTime getCreateTime() {
		return createTime;
	}
	
	/**
	 * 更新时间
	 * 
	 * @return updateTime
	 */
	public LocalDateTime getUpdateTime() {
		return updateTime;
	}
	

	/**
	 * id
	 * 
	 * @param id
	 */
	public void setId(String id) {
		this.id = id;
	}
	
	/**
	 * 激活字典项：yes[激活]，no[未激活]
	 * 
	 * @param enableItem
	 */
	public void setEnableItem(String enableItem) {
		this.enableItem = enableItem;
	}
	
	/**
	 * 字典类别
	 * 
	 * @param dictType
	 */
	public void setDictType(String dictType) {
		this.dictType = dictType;
	}
	
	/**
	 * 字典名称
	 * 
	 * @param dictName
	 */
	public void setDictName(String dictName) {
		this.dictName = dictName;
	}
	
	/**
	 * 字典键值
	 * 
	 * @param dictKey
	 */
	public void setDictKey(String dictKey) {
		this.dictKey = dictKey;
	}
	
	/**
	 * 字典说明
	 * 
	 * @param dictReadme
	 */
	public void setDictReadme(String dictReadme) {
		this.dictReadme = dictReadme;
	}
	
	/**
	 * 创建时间
	 * 
	 * @param createTime
	 */
	public void setCreateTime(LocalDateTime createTime) {
		this.createTime = createTime;
	}
	
	/**
	 * 更新时间
	 * 
	 * @param updateTime
	 */
	public void setUpdateTime(LocalDateTime updateTime) {
		this.updateTime = updateTime;
	}

	public Integer getDictLevel() {
		return dictLevel;
	}

	public void setDictLevel(Integer dictLevel) {
		this.dictLevel = dictLevel;
	}

	public List<DataDictItem> getItemList() {
		return itemList;
	}

	public void setItemList(List<DataDictItem> itemList) {
		this.itemList = itemList;
	}

	public boolean isHaveChild() {
		return haveChild;
	}

	public void setHaveChild(boolean haveChild) {
		this.haveChild = haveChild;
	}

	public String getDictCode() {
		return dictCode;
	}

	public void setDictCode(String dictCode) {
		this.dictCode = dictCode;
	}

	public String getDictAttribute() {
		return dictAttribute;
	}

	public void setDictAttribute(String dictAttribute) {
		this.dictAttribute = dictAttribute;
	}

	public String getDictRemark() {
		return dictRemark;
	}

	public void setDictRemark(String dictRemark) {
		this.dictRemark = dictRemark;
	}

	public String getDictTypeName() {
		return dictTypeName;
	}

	public void setDictTypeName(String dictTypeName) {
		this.dictTypeName = dictTypeName;
	}
}